Package com.cisco.pt.ipc.sim.pdu.impl
Class RstpFrameImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.STPFrameImpl
com.cisco.pt.ipc.sim.pdu.impl.RstpFrameImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected STPPortRoleprotected RstpPortStateprotected booleanFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.STPFrameImpl
bridgeId, flags, forwardDelay, helloTime, lengthValues, maxAge, messageAge, messageType, portId, protocolId, rootBridgeId, rootPathCost, versionFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) booleangetFieldType(String fieldName) booleanvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetAgreement(boolean agreement) voidsetPortRole(STPPortRole portRole) voidsetPortState(RstpPortState portState) voidsetProposal(boolean proposal) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.STPFrameImpl
getBridgeId, getFlags, getForwardDelay, getHelloTime, getLengthValues, getMaxAge, getMessageAge, getMessageType, getPortId, getProtocolId, getRootBridgeId, getRootPathCost, getVersion, setBridgeId, setFlags, setForwardDelay, setHelloTime, setLengthValues, setMaxAge, setMessageAge, setMessageType, setPortId, setProtocolId, setRootBridgeId, setRootPathCost, setVersionMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValueMethods inherited from interface com.cisco.pt.ipc.sim.pdu.STPFrame
getBridgeId, getFlags, getForwardDelay, getHelloTime, getLengthValues, getMaxAge, getMessageAge, getMessageType, getPortId, getProtocolId, getRootBridgeId, getRootPathCost, getVersion, setBridgeId, setFlags, setForwardDelay, setHelloTime, setLengthValues, setMaxAge, setMessageAge, setMessageType, setPortId, setProtocolId, setRootBridgeId, setRootPathCost, setVersion
-
Field Details
-
proposal
protected boolean proposal -
agreement
protected boolean agreement -
portState
-
portRole
-
-
Constructor Details
-
RstpFrameImpl
public RstpFrameImpl()
-
-
Method Details
-
getProposal
public boolean getProposal()- Specified by:
getProposalin interfaceRstpFrame- Returns:
- boolean Returns a boolean
-
setProposal
public void setProposal(boolean proposal) - Specified by:
setProposalin interfaceRstpFrame- Parameters:
proposal- Takes in a parameter of proposal
-
getAgreement
public boolean getAgreement()- Specified by:
getAgreementin interfaceRstpFrame- Returns:
- boolean Returns a boolean
-
setAgreement
public void setAgreement(boolean agreement) - Specified by:
setAgreementin interfaceRstpFrame- Parameters:
agreement- Takes in a parameter of agreement
-
getPortState
- Specified by:
getPortStatein interfaceRstpFrame- Returns:
- RstpPortState Returns a RstpPortState
-
setPortState
- Specified by:
setPortStatein interfaceRstpFrame- Parameters:
portState- Takes in a parameter of portState
-
getPortRole
- Specified by:
getPortRolein interfaceRstpFrame- Returns:
- STPPortRole Returns a STPPortRole
-
setPortRole
- Specified by:
setPortRolein interfaceRstpFrame- Parameters:
portRole- Takes in a parameter of portRole
-
getFieldType
- Overrides:
getFieldTypein classSTPFrameImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classSTPFrameImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classSTPFrameImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classSTPFrameImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classSTPFrameImpl
-